﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DataAccess;
using Model;

namespace Business.WPF
{
    public class NewInscriptionManager
    {
        public Inscription NewInscription(int ciEstudiante, long codMateria, string gestion)
        {
            Inscription inscription = new Inscription()
            {
                ciEstudiante = ciEstudiante,
                codM = codMateria,
                Gestion = gestion
            };
            return InscriptionDataAccess.NewInscription(inscription);
        }

        public Inscription ModifyInscription(int ciEstudiante, long codMateria, string gestion, long codInscription, int nota1,int nota2,int nota3)
        {
            Inscription inscription = new Inscription
            {
                ciEstudiante = ciEstudiante,
                codM = codMateria,
                Gestion = gestion,
                codI = codInscription,
                Nombre = "nombre",
                Apellido = "apellido",
                Materia = "Materia",
                score1 = nota1,
                score2 = nota2,
                score3 = nota3,
                finalScore = 0
            };
            inscription = InscriptionDataAccess.ModifyInscription(inscription);
            return inscription;

        }
    }
    
}
